import http from "@/api";
import { PORT3, PORT4, PORT5 } from "@/api/config/servicePort";

export const getWarningList = params => {
  return http.post(`${PORT3}/recordList`, params);
};
//订单列表
export const getOrderList = params => {
  return http.post(`${PORT3}/saleOrderList`, params);
};
//获取上商家端App 版本设置
export const getShopAppVersion: any = params => {
  return http.post<any>(`${PORT4}/shopAppVersion`, params, { loading: false });
};
export const getPdaAppVersion: any = params => {
  return http.post<any>(`${PORT4}/pdaVersion`, params, { loading: false });
};
export const getPdsDownloadUrl: any = params => {
  return http.post<any>(`${PORT4}/versionUpdate`, params, { loading: false });
};
export const getShopDownloadUrl: any = params => {
  return http.post<any>(`${PORT4}/shopAppVersionUpdate`, params, { loading: false });
};
//获取商户列表
export const getShopListApi: any = params => {
  return http.post<any>(`${PORT5}/getShopList`, params, { loading: false });
};
export const addShopVipDayApi: any = params => {
  return http.post<any>(`${PORT5}/setVip`, params, { loading: false });
};
//获取所有工作的设备
export const getDeviceListApi: any = params => {
  return http.post<any>(`${PORT5}/pdaList`, params, { loading: params.loading });
};
